<template>
    <web-view :src="url"></web-view>
</template>

<script>
export default {
    data() {
        return {
            url: ''
        };
    },
    onLoad(options) {
        if (!options || !options.hasOwnProperty('url')) {
            uni.showModal({
                title: '提示',
                content: 'url地址错误',
                showCancel: false
            });
        }
        this.url = decodeURIComponent(options.url);
    }
};
</script>

<style></style>
